import request from '@/utils/request'



// 查询推广链接搜索列表
export function ALlLinks(query) {
  return request({
    url: '/share/links/allList',
    method: 'get',
    params: query
  })
}


// 查询推广链接配置列表
export function listLinks(query) {
  return request({
    url: '/share/links/list',
    method: 'get',
    params: query
  })
}

// 查询推广链接配置详细
export function getLinks(id) {
  return request({
    url: '/share/links/' + id,
    method: 'get'
  })
}

// 新增推广链接配置
export function addLinks(data) {
  return request({
    url: '/share/links',
    method: 'post',
    data: data
  })
}

// 修改推广链接配置
export function updateLinks(data) {
  return request({
    url: '/share/links',
    method: 'put',
    data: data
  })
}

// 删除推广链接配置
export function delLinks(id) {
  return request({
    url: '/share/links/' + id,
    method: 'delete'
  })
}
